﻿/*********************弘石项目三组************************
*  功能描述：联系人信息业务逻辑层
*  作者：刘伟康
*  时间：2021-12-12
*  修改人：刘伟康
*  修改时间：2021-12-12
*********************弘石项目三组************************/
using Hong.IRepository.IRepository_CustomerManagement;
using Hong.Model.SysDomain.Model_CustomerManagement.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hong.Business.Business_CustomerManagement
{
    public class CustInfoPersonListBusiness
    {
        #region 构造器注入
        private readonly ICustInfoPersonListRepository _cust;
        public CustInfoPersonListBusiness(ICustInfoPersonListRepository cust)
        {
            _cust = cust;
        }
        #endregion

        #region 联系人信息
        /// <summary>
        /// 联系人查询分页
        /// </summary>
        /// <param name="personNmae"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        public List<CustomerExPersonView> GetCustomerExPersonView(string personNmae, int pageIndex, int pageSize, out int totalCount)
        {
            var list = _cust.GetCustomerExPersonView(personNmae, pageIndex, pageSize, out totalCount);
            return list;
        }
        #endregion
    }
}
